
class HistoryIncomeResp {
  bool? hasNext;
  List<IncomeModel>? list;
  int? totalIncome;

  static HistoryIncomeResp fromJson(Map<String, dynamic>? map) {
    if(map == null) return HistoryIncomeResp();
    HistoryIncomeResp model = HistoryIncomeResp();
    model.hasNext = map['hasNext'];
    if(map['list'] is List) {
      model.list = (map['list'] as List).map((o) => IncomeModel.fromMap(o)).toList();
    }
    model.totalIncome = map['totalIncome'];
    return model;
  }

}

class IncomeModel {
  String? id;
  int? uid;
  String? title;
  String? videoID;
  int? coins;
  double? actualAmount;
  int? tax;
  int? payMoney;
  int? publisherID;
  String? unique;
  String? createdAt;
  int? rechargeId;
  RechargeUser? rechargeUser;
  String? cover;
  String? tranType;
  String? desc;
  static IncomeModel fromMap(Map<String, dynamic>? map) {
    if (map == null) return IncomeModel();
    IncomeModel listBean = IncomeModel();
    listBean.id = map['id'];
    listBean.uid = map['uid'];
    listBean.title = map['title'];
    listBean.videoID = map['videoID'];
    listBean.coins = map['coins'];
    listBean.actualAmount = map['actualAmount'];
    listBean.tax = map['tax'];
    listBean.payMoney = map['payMoney'];
    listBean.publisherID = map['publisherID'];
    listBean.unique = map['uniq'];
    listBean.createdAt = map['createdAt'];
    listBean.rechargeId = map['rechargeId'];
    listBean.rechargeUser = RechargeUser.fromJson(map['rechargeUser']);
    listBean.cover = map['cover'];
    listBean.tranType = map['tranType'];
    listBean.desc = map['desc'];
    return listBean;
  }

}

class RechargeUser {
  final int? uid;
  final String? name;
  final String? portrait;

  RechargeUser({
    this.uid,
    this.name,
    this.portrait,
  });

  factory RechargeUser.fromJson(Map<String, dynamic> json) => RechargeUser(
    uid: json["uid"],
    name: json["name"],
    portrait: json["portrait"],
  );

}
